package org.soenea.doitall.domain.model.group;

import java.util.List;

import org.dsrg.soenea.domain.DomainObject;
import org.soenea.doitall.domain.model.invite.IInvite;


public class Group extends DomainObject<Long> implements IGroup {
	private String name;
	private String description;
	private List<IInvite> members;
	
	public Group(Long id, long version, String name, String description, List<IInvite> members) {
		 super(id, version);
		 this.name = name;
		 this.description = description;
		 this.members = members;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public List<IInvite> getMembers() {
		return members;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public void setMembers(List<IInvite> members) {
		this.members = members;
	}
}
